home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / beaverblast.swf / scripts / frame_39 / PlaceObject2_208_98 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2006-06-13  |  760 b   |  32 lines

  1. onClipEvent(enterFrame){
  2.    if(!_root.fire)
  3.    {
  4.       _root.bonus = int(Math.abs(200 + bar._x) * 5);
  5.       if(Key.isDown(39) && _root.tinMove.dead == true)
  6.       {
  7.          _root.tinMove = new Timer(goToTin,1,false);
  8.       }
  9.       else
  10.       {
  11.          turn--;
  12.          if(turn < -10)
  13.          {
  14.             if(_root.back3._x + 12 < 0)
  15.             {
  16.                _root.back3._x += 12;
  17.                _root.back2._x += 2.4;
  18.                _root.back1._x += 1.2;
  19.                _root.retract = true;
  20.             }
  21.             else
  22.             {
  23.                _root.back3._x = 0;
  24.                _root.back2._x = 0;
  25.                _root.back1._x = 0;
  26.                _root.retract = false;
  27.             }
  28.          }
  29.       }
  30.    }
  31. }
  32.